package com.example.springai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 会话内容
 *
 * @author ZWX
 */
@Data
@TableName("spring_ai_chat_memory")
public class SpringAiChatMemory implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 会话ID
     */
    @TableId(value = "conversation_id", type = IdType.INPUT)
    private String conversationId;

    /**
     * 会话内容
     */
    private String content;

    /**
     * 会话类型
     */
    private String type;

    /**
     * 会话时间
     */
    private Timestamp timestamp;
}
